//https://leetcode.cn/problems/move-zeroes

class Solution {
public:
    void moveZeroes(vector<int>& nums) {
        int cnt = 0;
        for(int i = 0; i < nums.size(); i++) {
            if(nums[i]) {
                swap(nums[i], nums[cnt++]);
            }
        }
    }
};
